import { createRouter, createWebHistory } from 'vue-router'

import TabBar from '../components/TabBar.vue'
const routes = [
  
  {
    path: '/',
    name: 'login',
   
    components:{
      default:() => import( '../views/login/login.vue'),
      footer:TabBar
    } 
  },
   {
    path: '/user',
    name: 'user',
   
    components:{
      default:() => import( '../views/user/user.vue'),
      footer:TabBar
    } 
  },
   {
    path: '/register',
    name: 'register',
   
    components:{
      default:() => import( '../views/register/register.vue'),
      footer:TabBar
    } 
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
